package com.manlitech.cloudboot.baseboot.prox;

import lombok.AllArgsConstructor;
import org.springframework.cglib.proxy.InvocationHandler;

import java.lang.reflect.Method;

@AllArgsConstructor
public class JdkProx implements InvocationHandler {
    public Object o;
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("JdkProx在什么之前");
        Object result = method.invoke(this.o, args);
        System.out.println("jdkProx在什么之后");
        return result;

    }


}